package me.zhengjie.tool;

import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.stereotype.Component;

@Component
@ConfigurationProperties(prefix = "utiladdressconfig")
public class UtilAddressConfig {

    //基础库地址
    private String jckurl;

    public static String getJckurl() {
        UtilAddressConfig utilAddressConfig = SpringContextUtil.getBean(UtilAddressConfig.class);
        return utilAddressConfig.jckurl;
    }

    public void setJckurl(String jckurl) {
        this.jckurl = jckurl;
    }

}
